package com.zhku.shop.feignclient;

import com.zhku.base.model.PageParams;
import com.zhku.base.model.PageResult;
import com.zhku.base.model.RestResponse;
import com.zhku.shop.model.dto.UpdateUserRoleDto;
import com.zhku.shop.model.po.TtUser;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@FeignClient(value = "user-api", fallbackFactory = UserClientFactory.class)
@RequestMapping("/user")
public interface UserClient {

    @PostMapping("/shop/list/{id}")
    public List<TtUser> shopUserList(@PathVariable("id") String id);

    @PostMapping("/role/updateUserRole")
    public RestResponse updateUserRole(@RequestBody UpdateUserRoleDto updateUserRoleDto);

    @PostMapping("/updateUserShop/{id}")
    public RestResponse<TtUser> updateUserShop(@PathVariable("id") String id);
}
